//
//  askCustomerServiceViewController.m
//  FastRunDemo
//
//  Created by 苟亚明 on 16/9/30.
//  Copyright © 2016年 苟亚明. All rights reserved.
//

#import "askCustomerServiceViewController.h"
#import "MBProgressHUD+MJ.h"
@interface askCustomerServiceViewController ()
@property (weak, nonatomic) IBOutlet UIView *contentView;

@end

@implementation askCustomerServiceViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    UIImage *image = [UIImage imageNamed:@"transparent-1"];
    [self.navigationController.navigationBar setBackgroundImage:image
                                                  forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:image];
    self.navigationController.navigationBar.titleTextAttributes =  @{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:17]};
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    
    self.navigationController.navigationBar.titleTextAttributes =  @{NSForegroundColorAttributeName:[UIColor orangeColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:17]};
}
- (void)viewDidDisappear:(BOOL)animated{
    [super viewDidDisappear:animated];
    [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:nil];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"咨询客服";
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:@"arrow_back" highImage:@"arrow_back" target:self action:@selector(leftBtnClick)];
    
}
- (void)leftBtnClick{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)btnSellListClick:(id)sender {
    [MBProgressHUD showError:@"你没有订单"];
}
- (IBAction)btnSellOutClick:(id)sender {
    [MBProgressHUD showError:@"你没有订单"];
}
- (IBAction)btnAskClick:(id)sender {
    [MBProgressHUD showError:@"暂不能咨询"];
}



@end
